import { Cascader } from 'antd';
const options = [
    {
        value: 'zhejiang',
        label: '1',
    },
    {
        value: 'jiangsu',
        label: '2',
        children: [
            {
                value: 'nanjing',
                label: 'Nanjing',
                children: [
                    {
                        value: 'zhonghuamen',
                        label: 'Zhong Hua Men',
                    },
                ],
            },
        ],
    },
];

const onChange = (value: any) => {
    console.log(value);
};

const App = () => (
    <Cascader defaultValue={['zhejiang', 'hangzhou', 'xihu']} options={options} onChange={onChange} />
);

export default App;